* {
    margin: 0;
    padding: 0;
}
ul {
    list-style: none;
}
body {
    background-color: #000;
}
.wrapper {
    width: 100vw;
    height: 100vh;
    transition: all 0.3s linear;
}
.wrapper ul {
    width: 90%;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}
.wrapper ul li {
    width: 15%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: transform 0.6s linear,
        height 0.5s linear,
        width 0.5s linear .5s;
    overflow: hidden;
}
.wrapper .init li {
    transform: translateY(100%);
}
.wrapper li:nth-child(2) {
    transition-delay: 0.2s;
}
.wrapper li:nth-child(3) {
    transition-delay: 0.4s;
}
.wrapper li:nth-child(4) {
    transition-delay: 0.6s;
}
.wrapper li:nth-child(5) {
    transition-delay: 0.8s;
}
.wrapper li:nth-child(6) {
    transition-delay: 1s;
}
.wrapper ul li .bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: 0.3s linear;
}
.wrapper ul li:hover .bg {
    opacity: 1;
}
.wrapper li:nth-child(1) .bg {
    background-image: url(images/1.jpg);
}
.wrapper li:nth-child(2) .bg {
    background-image: url(images/2.jpg);
}
.wrapper li:nth-child(3) .bg {
    background-image: url(images/3.jpg);
}
.wrapper li:nth-child(4) .bg {
    background-image: url(images/4.jpg);
}
.wrapper li:nth-child(5) .bg {
    background-image: url(images/5.jpg);
}
.wrapper li:nth-child(6) .bg {
    background-image: url(images/6.jpg);
}
.wrapper ul li h3 {
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}
.wrapper ul li:hover h3 {
    font-size: 25px;
}
.wrapper .description, .wrapper .close{
    visibility: hidden;
}
#ul li {
    transition: height .5s linear, width .5s linear .5s;
}
#ul li.active {
    width: 100%;
}
#ul li:not(.active) {
    width: 0%;
    height: 0%;
}
#ul .bg {
    opacity: 1 !important;
}
#ul .description, #ul .close{
    visibility: visible;
    transition: .5s linear 1s;
}
#ul .description{
    position: absolute;
    left: 30px;
    top: 30px;
    font-size: 25px;
}
#ul .close{
    position: absolute;
    top: 30px;
    right: 25px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transform: rotate(360deg);
    /* transition: .5s linear 1s; */
}
#ul .close::before, #ul .close::after{
    content: "";
    width: 4px;
    height: 35px;
    background-color: #000;
    position: absolute;
}
#ul .close::before{
    transform: rotate(45deg);
}
#ul .close::after{
    transform: rotate(-45deg);
}